Optimal. Leaf size=81 \[ \frac {2 F_1\left (\frac {3}{2};1-n,1;\frac {5}{2};-i \tan (c+d x),i \tan (c+d x)\right ) (1+i \tan (c+d x))^{-n} (a+i a \tan (c+d x))^n}{3 d \cot ^{\frac {3}{2}}(c+d x)} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.12, antiderivative size = 81, normalized size of antiderivative = 1.00, number of steps
used = 5, number of rules used = 5, integrand size = 26, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.192, Rules used = {4326, 3645,
129, 525, 524} \begin {gather*} \frac {2 (1+i \tan (c+d x))^{-n} (a+i a \tan (c+d x))^n F_1\left (\frac {3}{2};1-n,1;\frac {5}{2};-i \tan (c+d x),i \tan (c+d x)\right )}{3 d \cot ^{\frac {3}{2}}(c+d x)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 129
Rule 524
Rule 525
Rule 3645
Rule 4326
Rubi steps
\begin {align*} \int \frac {(a+i a \tan (c+d x))^n}{\sqrt {\cot (c+d x)}} \, dx &=\left (\sqrt {\cot (c+d x)} \sqrt {\tan (c+d x)}\right ) \int \sqrt {\tan (c+d x)} (a+i a \tan (c+d x))^n \, dx\\ &=\frac {\left (i a^2 \sqrt {\cot (c+d x)} \sqrt {\tan (c+d x)}\right ) \text {Subst}\left (\int \frac {\sqrt {-\frac {i x}{a}} (a+x)^{-1+n}}{-a^2+a x} \, dx,x,i a \tan (c+d x)\right )}{d}\\ &=-\frac {\left (2 a^3 \sqrt {\cot (c+d x)} \sqrt {\tan (c+d x)}\right ) \text {Subst}\left (\int \frac {x^2 \left (a+i a x^2\right )^{-1+n}}{-a^2+i a^2 x^2} \, dx,x,\sqrt {\tan (c+d x)}\right )}{d}\\ &=-\frac {\left (2 a^2 \sqrt {\cot (c+d x)} (1+i \tan (c+d x))^{-n} \sqrt {\tan (c+d x)} (a+i a \tan (c+d x))^n\right ) \text {Subst}\left (\int \frac {x^2 \left (1+i x^2\right )^{-1+n}}{-a^2+i a^2 x^2} \, dx,x,\sqrt {\tan (c+d x)}\right )}{d}\\ &=\frac {2 F_1\left (\frac {3}{2};1-n,1;\frac {5}{2};-i \tan (c+d x),i \tan (c+d x)\right ) (1+i \tan (c+d x))^{-n} (a+i a \tan (c+d x))^n}{3 d \cot ^{\frac {3}{2}}(c+d x)}\\ \end {align*}
________________________________________________________________________________________
Mathematica [F]
time = 6.54, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {(a+i a \tan (c+d x))^n}{\sqrt {\cot (c+d x)}} \, dx \end {gather*}
Verification is not applicable to the result.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 0.66, size = 0, normalized size = 0.00 \[\int \frac {\left (a +i a \tan \left (d x +c \right )\right )^{n}}{\sqrt {\cot \left (d x +c \right )}}\, dx\]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\left (i a \left (\tan {\left (c + d x \right )} - i\right )\right )^{n}}{\sqrt {\cot {\left (c + d x \right )}}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {{\left (a+a\,\mathrm {tan}\left (c+d\,x\right )\,1{}\mathrm {i}\right )}^n}{\sqrt {\mathrm {cot}\left (c+d\,x\right )}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________